package com.example.hasee.log_test;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;

public class LogTest extends AppCompatActivity {
    public static final String TAG = "LogTest";
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_log_test);
        Button b1 = (Button) findViewById(R.id.B1);
        b1.setOnClickListener(new Button.OnClickListener(){
            @Override
            public void onClick(View v){
                Log.v(TAG,"This is v");
                Log.d(TAG,"This is d");
                Log.i(TAG,"This is i");
                Log.w(TAG,"This is w");
                Log.e(TAG,"This is e");
            }
        });
    }
}